import request from '@/utlis/request'

// 获取轮播图
export function getBanner () {
  return request({
    url: '/banner?type=0'
  })
}

// 获取推荐歌单
export function getRecommendSongList (params) {
  return request({
    url: '/personalized',
    params
  })
}

// 获取新歌速递
export function getNewSongList () {
  return request({
    url: '/personalized/newsong?dd=' + Date.now(),
    method: 'get'
  })
}

// 获取热门歌手
export function getHotSinger (params) {
  return request({
    url: '/top/artists',
    method: 'get',
    params
  })
}
